//
//  MyNodeShenKuanCell.m
//  digitalCurrency
//
//  Created by 小震GG on 2019/11/1.
//  Copyright © 2019 XinHuoKeJi. All rights reserved.
//

#import "MyNodeShenKuanCell.h"

@interface MyNodeShenKuanCell ()

@end

@implementation MyNodeShenKuanCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.backgroundColor = [UIColor whiteColor];
        self.selectionStyle = NO;
        
        [self setView];
    }
    
    return self;
}

- (void)setView
{
    self.backgroundColor = tColor(@"#F2FAFD");
    
    self.nameLB = [[UILabel alloc]init];
    [self addSubview:self.nameLB];
    [self.nameLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(16);
        make.centerY.equalTo(0);
    }];
    self.nameLB.textColor = tThreeColor;
    self.nameLB.font = kFont(12);
    
    self.lvLB = [[UILabel alloc]init];
    [self addSubview:self.lvLB];
    [self.lvLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(0);
        make.centerY.equalTo(0);
    }];
    self.lvLB.textColor = tThreeColor;
    self.lvLB.font = kFont(12);
    self.lvLB.hidden = YES;
    
    self.moneyLB = [[UILabel alloc]init];
    [self addSubview:self.moneyLB];
    [self.moneyLB mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(-16);
        make.centerY.equalTo(0);
    }];
    self.moneyLB.textColor = tThreeColor;
    self.moneyLB.font = kFont(12);

}

- (void)setFrame:(CGRect)frame
{
       frame.origin.x += 12;
       frame.size.width -= 24;
       [super setFrame:frame];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
